const routerMenus = {
    //brand-model
    ytcarsParaConfig:{
        path: '/ytcars-panel/brand-model/para-config/:type_id',
        name: 'ytcarsParaConfig',
        component: () => import(/* webpackChunkName: "ytcarsParaConfig" */'@/views/home/ytcars-panel/brand-model/paraConfig.vue'),
    },
    brandModel:{
        path: '/ytcars-panel/brand-model',
        name: 'brandModel',
        redirect:'/ytcars-panel/brand-model/brand',
        component: () => import(/* webpackChunkName: "brandModel" */ '@/views/home/ytcars-panel/brand-model/tab-control.vue'),
        meta:{tabs:[
            {label:"厂商品牌",name:"ytcarsBrandModel"},
            {label:"车型车款",name:"ytcarsBrandStyle"},
            {label:"视频上传",name:"ytcarsBrandVideo"},
        ]},
        children: []
    },
    ytcarsBrandModel:{
        path: '/ytcars-panel/brand-model/brand',
        name: 'ytcarsBrandModel',
        component: () => import(/* webpackChunkName: "ytcarsBrandModel" */ '@/views/home/ytcars-panel/brand-model/brand.vue'),
    },
    ytcarsBrandVideo:{
        path: '/ytcars-panel/brand-model/video/:carTypeId',
        name: 'ytcarsBrandVideo',
        component: () => import(/* webpackChunkName: "ytcarsBrandVideo" */ '@/views/home/ytcars-panel/brand-model/video-list.vue'),
        beforeEnter: (to, from, next) => {
            const brand_id = to.params.carTypeId;
            if(brand_id){
                next()
            }
        }
    },
    ytcarsBrandImage:{
        path: '/ytcars-panel/brand-model/image/:carTypeId',
        name: 'ytcarsBrandImage',
        component: () => import(/* webpackChunkName: "ytcarsBrandImage" */ '@/views/home/ytcars-panel/brand-model/image-list.vue'),
        beforeEnter: (to, from, next) => {
            const brand_id = to.params.carTypeId;
            if(brand_id){
                next()
            }
        }
    },
    ytcarsBrandStyle:{
        path: '/ytcars-panel/brand-model/style/:brand_id',
        name: 'ytcarsBrandStyle',
        component: () => import(/* webpackChunkName: "ytcarsBrandStyle" */ '@/views/home/ytcars-panel/brand-model/style.vue'),
        props: true,
        beforeEnter: (to, from, next) => {
            const brand_id = to.params.brand_id;
            if(brand_id){
                next()
            }
        }
    },
    massDispatchLists: {
        path: '/ytcars-panel/group-marketing/mass-dispatch/lists',
        name: 'massDispatchLists',
        component: () => import(/* webpackChunkName: "massDispatchLists" */ '@/views/home/ytcars-panel/group-marketing/mass-dispatch/lists.vue')
    },
    massDistributionReviewLists: {
        path: '/ytcars-panel/group-marketing/mass-distribution-review/lists',
        name: 'massDistributionReviewLists',
        component: () => import(/* webpackChunkName: "massDistributionReviewLists" */ '@/views/home/ytcars-panel/group-marketing/mass-distribution-review/lists.vue')
    },
    //inquiry
    inquiryCustomer:{
        path: '/ytcars-panel/inquiry-customer/inquiry',
        name: 'inquiryCustomer',
        component: () => import(/* webpackChunkName: "inquiryCustomer" */ '@/views/home/ytcars-panel/inquiry-customer/inquiry.vue'),
    },
    //carPriceAudit
    carPriceAudit:{
        path: '/ytcars-panel/price-audit/car-price-audit',
        name: 'carPriceAudit',
        component: () => import(/* webpackChunkName: "carPriceAudit" */ '@/views/home/ytcars-panel/price-audit/car-price-audit.vue'),
    },
    videoManagement: {
        name: 'videoManagement',
        path: '/ytcars-panel/video-management',
        redirect: '/ytcars-panel/video-management/adviser',
        component: () => import(/* webpackChunkName: "videoManagement" */ '@/views/home/ytcars-panel/video-management/tab-control.vue'),
        meta: {
            tabs: [
                //{label: "视频顾问", name: "videoAdviser"},
                //{label: "视频记录", name: "videoRecord"},
            ]
        }
    },
    videoAdviser: {
        name: 'videoAdviser',
        path: '/ytcars-panel/video-management/adviser',
        component: () => import(/* webpackChunkName: "videoAdviser" */ '@/views/home/ytcars-panel/video-management/adviser.vue'),
    },
    videoRecord: {
        name: 'videoRecord',
        path: '/ytcars-panel/video-management/record',
        component: () => import(/* webpackChunkName: "videoRecord" */ '@/views/home/ytcars-panel/video-management/record.vue'),
    },
    ytcarsHotVideo:{
        path: '/ytcars-panel/hot-video',
        name: 'ytcarsHotVideo',
        redirect:'/ytcars-panel/hot-video/list',
        component: () => import(/* webpackChunkName: "ytcarsHotVideo" */ '@/views/home/ytcars-panel/brand-model/tab-control.vue')
    },
    ytcarsHotVideoList: {
        name: 'ytcarsHotVideoList',
        path: '/ytcars-panel/hot-video/list',
        component: () => import(/* webpackChunkName: "ytcarsHotVideoList" */  '@/views/home/ytcars-panel/hot-video/video-list.vue'),
    },
    // dataStatistics
    behavior: {
        name: 'behavior',
        path: '/ytcars-panel/data-statistics/behavior/registry-access',
        component: () => import(/* webpackChunkName: "behavior" */  '@/views/home/ytcars-panel/data-statistics/behavior/tab-control.vue'),
    },
    registryAccess: {
        name: 'registryAccess',
        path: '/ytcars-panel/data-statistics/behavior/registry-access',
        component: () => import(/* webpackChunkName: "registryAccess" */  '@/views/home/ytcars-panel/data-statistics/behavior/registry-access.vue'),
    },
    registryAccessDetails: {
        name: 'registryAccessDetails',
        path: '/ytcars-panel/data-statistics/behavior/registry-access-details',
        component: () => import(/* webpackChunkName: "registryAccessDetails" */  '@/views/home/ytcars-panel/data-statistics/behavior/registry-access-details.vue'),
    },
    flowDistribution: {
        name: 'flowDistribution',
        path: '/ytcars-panel/data-statistics/behavior/flow-distribution',
        component: () => import(/* webpackChunkName: "flowDistribution" */  '@/views/home/ytcars-panel/data-statistics/behavior/flow-distribution.vue'),
    },
    IMChat: {
        name: 'IMChat',
        path: '/ytcars-panel/data-statistics/behavior/im-chat',
        component: () => import(/* webpackChunkName: "IMChat" */  '@/views/home/ytcars-panel/data-statistics/behavior/im-chat.vue'),
    },
    wechatAdd: {
        name: 'wechatAdd',
        path: '/ytcars-panel/data-statistics/behavior/wechat-add',
        component: () => import(/* webpackChunkName: "wechatAdd" */  '@/views/home/ytcars-panel/data-statistics/behavior/wechat-add.vue'),
    },
    wechatAddDetails: {
        name: 'wechatAddDetails',
        path: '/ytcars-panel/data-statistics/behavior/wechat-add-details',
        component: () => import(/* webpackChunkName: "wechatAddDetails" */  '@/views/home/ytcars-panel/data-statistics/behavior/wechat-add-details.vue'),
    },
    // 视频咨询下线
    // videoConsult: {
    //     name: 'videoConsult',
    //     path: '/ytcars-panel/data-statistics/behavior/video-consult',
    //     component: () => import(/* webpackChunkName: "videoConsult" */  '@/views/home/ytcars-panel/data-statistics/behavior/video-consult.vue'),
    // },
    // videoConsultDetails: {
    //     name: 'videoConsultDetails',
    //     path: '/ytcars-panel/data-statistics/behavior/video-consult-details',
    //     component: () => import(/* webpackChunkName: "videoConsultDetails" */  '@/views/home/ytcars-panel/data-statistics/behavior/video-consult-details.vue'),
    // },
    goldAdviser: {
        name: 'goldAdviser',
        path: '/ytcars-panel/gold-adviser',
        redirect: '/ytcars-panel/gold-adviser/brand-adviser',
        component: () => import(/* webpackChunkName: "goldAdviser" */  '@/views/home/ytcars-panel/gold-adviser/brand-adviser.vue'),
    },
    brandAdviser: {
        name: 'brandAdviser',
        path: '/ytcars-panel/gold-adviser/brand-adviser',
        component: () => import(/* webpackChunkName: "brandAdviser" */  '@/views/home/ytcars-panel/gold-adviser/brand-adviser.vue'),
    },
    electricPile: {
        name: 'electricPile',
        path: '/ytcars-panel/electric-pile',
        redirect: '/ytcars-panel/electric-pile/list',
        component: () => import(/* webpackChunkName: "electricPile" */ '@/views/home/ytcars-panel/electric-pile/tab-control.vue')
    },
    electricPileList: {
        name: 'electricPileList',
        path: '/ytcars-panel/electric-pile/list',
        component: () => import(/* webpackChunkName: "electricPileList" */ '@/views/home/ytcars-panel/electric-pile/list.vue'),
    },
    iconSettings: {
        name: 'iconSettings',
        path: '/ytcars-panel/icon-settings',
        redirect: '/ytcars-panel/icon-settings/icon-config',
        component: () => import(/* webpackChunkName: "iconSettings" */ '@/views/home/ytcars-panel/icon-settings/tab-control.vue')
    },
    iconConfig: {
        name: 'iconConfig',
        path: '/ytcars-panel/icon-settings/icon-config',
        component: () => import(/* webpackChunkName: "iconConfig" */ '@/views/home/ytcars-panel/icon-settings/icon-config.vue'),
    },
    transaction: {
        name: 'transaction',
        path: '/ytcars-panel/data-statistics/transaction',
        redirect: '/ytcars-panel/data-statistics/transaction/index',
        component: () => import(/* webpackChunkName: "transaction" */  '@/views/home/ytcars-panel/data-statistics/transaction/tab-control.vue'),
    },
    transactionData: {
        name: 'transactionData',
        path: '/ytcars-panel/data-statistics/transaction/index',
        component: () => import(/* webpackChunkName: "transactionData" */  '@/views/home/ytcars-panel/data-statistics/transaction/index.vue'),
    },
    transactionDataDetails: {
        name: 'transactionDataDetails',
        path: '/ytcars-panel/data-statistics/transaction/details',
        component: () => import(/* webpackChunkName: "transactionDataDetails" */  '@/views/home/ytcars-panel/data-statistics/transaction/details.vue'),
    },
    dataDetails: {
        name: 'dataDetails',
        path: '/ytcars-panel/data-statistics/data-details',
        component: () => import(/* webpackChunkName: "dataDetails" */  '@/views/home/ytcars-panel/data-statistics/data/details.vue'),
    },
    // wechatData
    wechatData: {
        name: 'wechatData',
        path: '/ytcars-panel/data-statistics/wechat-data',
        redirect: '/ytcars-panel/data-statistics/wechat-data/interaction',
        component: () => import(/* webpackChunkName: "wechatData" */  '@/views/home/ytcars-panel/data-statistics/wechat-data/tab-control.vue'),
    },
    wechatDataInteraction: {
        name: 'wechatDataInteraction',
        path: '/ytcars-panel/data-statistics/wechat-data/interaction',
        component: () => import(/* webpackChunkName: "wechatDataInteraction" */  '@/views/home/ytcars-panel/data-statistics/wechat-data/interaction.vue'),
    },
    storeTraffic: {
        name: 'storeTraffic',
        path: '/ytcars-panel/data-statistics/store-traffic',
        component: () => import(/* webpackChunkName: "storeTraffic" */  '@/views/home/ytcars-panel/data-statistics/store-traffic/index.vue'),
    },
    wechatDataCustomer: {
        name: 'wechatDataCustomer',
        path: '/ytcars-panel/data-statistics/wechat-data/customers',
        component: () => import(/* webpackChunkName: "wechatDataCustomer" */  '@/views/home/ytcars-panel/data-statistics/wechat-data/customers.vue'),
    },
    goldMaster: {
        name: 'goldMaster',
        path: '/ytcars-panel/gold-master/master-list.vue',
        component: () => import(/* goldMaster: "goldMaster" */  '@/views/home/ytcars-panel/gold-master/master-list.vue'),
    },
    questionnaireList: {
        path: '/ytcars-panel/questionnaire/list',
        name: 'questionnaireList',
        component: () => import(/* webpackChunkName: "questionnaireList" */ '@/views/home/ytcars-panel/questionnaire/list.vue')
    }
}
export default routerMenus